package com.bite.ioc.config;

import com.bite.ioc.model.UserInfo;
import com.bite.ioc.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-05-15
 * Time:22:55
 */
@Configuration
public class BeanConfig {
//    @Primary

    @Bean
    public UserInfo userInfo(){
        return new UserInfo("zhangsan");
    }
    @Bean
    public UserInfo userInfo1(){
        return new UserInfo("123");
    }
    @Bean
    public UserInfo UCInfo(){
        return new UserInfo("lisi");
    }
}
